#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	int n;
	cin >> n;
	while (n--) {
		double x, y;
		cin >> x >> y;
		x = (x - 100) * 0.9;

		double ans = abs(x - y / 2) - x * 0.1;

		if (ans < 0)
			cout << "You are wan mei!\n";
		else if (x < y / 2)
			cout << "You are tai pang le!\n";
		else
			cout << "You are tai shou le!\n";
	}
	return 0;
}
